package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 登陆设备校验表
 * @author chengjian 
 * @date 2021/10/12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysLoginCheck {
    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 登陆账号
     */
    private String username;
    /**
     * 登陆设备
     */
    private String ob;
    /**
     * 登陆ip
     */
    private String ip;
    /**
     * 设备id
     */
    private String unionId;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新时间
     */
    private Date updateTime;

    public SysLoginCheck(String username, String ob, String ip) {
        this.username = username;
        this.ob = ob;
        this.ip = ip;
    }
}
